package com.alit.face.koala.service.event;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.alit.face.koala.app.data.AppResponse;
import com.alit.face.koala.app.data.EventUser;
import com.alit.face.koala.app.data.Lv;
import com.alit.face.koala.app.data.Page;
import com.alit.face.koala.app.data.UserConstants;

@Service
public class EventService {

  public AppResponse constants(String category) {
    UserConstants userConstants = new UserConstants();
    userConstants.setCategory(category);
    userConstants.setShow_delete(1);
    List<Lv> purpose = new ArrayList<>();
    purpose.add(new Lv("其他", 0));
    purpose.add(new Lv("面试", 1));
    purpose.add(new Lv("商务", 2));
    purpose.add(new Lv("亲友", 3));
    purpose.add(new Lv("快递送货", 4));
    userConstants.setPurpose(purpose);

    List<Lv> screens = new ArrayList<>();
    screens.add(new Lv("大厅北门门斗1", 1));
    screens.add(new Lv("大厅北门门斗2", 2));
    userConstants.setScreens(screens);

    List<Lv> subjectTypeOptions = new ArrayList<>();
    subjectTypeOptions.add(new Lv("员工", 0));
    subjectTypeOptions.add(new Lv("访客", 1));
    subjectTypeOptions.add(new Lv("VIP", 2));
    subjectTypeOptions.add(new Lv("黄名单", 3));
    userConstants.setSubject_type_options(subjectTypeOptions);

    AppResponse retval = new AppResponse();
    retval.setCode(0);
    retval.setPage(new Page());
    retval.setData(userConstants);
    return retval;
  }

  public AppResponse events(String category) {
    EventUser data = new EventUser();
    AppResponse retval = new AppResponse();
    retval.setCode(0);
    retval.setData(data);
    retval.setPage(new Page());
    return retval;
  }

}
